#ifndef __Math__GameData__
#define __Math__GameData__
#include "cocos2d.h"
#include "LevelData.h"
#include "MathData.h"
#include "../Framework/pugixml.hpp"
USING_NS_CC;

enum EMathData
{
	kMathData_Mode, //0
	kMathData_ID, //1
	kMathData_Formula, //2
	kMathData_bMax, //3
	kMathData_AnswerMin, //4
	kMathData_AnswerMax, //5
	kMathData_FormulaCount, //6
	kMathData_NumGhostStart, //7
	kMathData_Time, //8
	kMathData_Type //9
};

class GameData
{
private:
	static GameData* m_instance;

	pugi::xml_document m_xmlDoc;
public:
    void readConfig();
    void readEasy();
    void readNormal();
    void readHard();

	static GameData* getInstance();

	std::map<int, LevelData> dataMode;
	MathData config;

	int getMaxNumEquationInLevel(EGameMode gameMode, int currLevel);

	GameData();
	~GameData();
};
#endif
